package com.array;
import java.util.*;
public class BabbleSort {
	static public void main(String[] args) {
		
		int data[] = new int[1000];
		Random random = new Random();
		
		for(int i = 0; i < 1000; i++) {
			data[i] = random.nextInt(100000);
		}
		
		
		Arrays.sort(data);
		
		/*
		for(int i = 0; i <= 998; i++) {
			for(int j = 0; j <= 998 - i; j++) {
				
				if(data[j] < data[j+1]) {
					int temp = data[j];
					data[j] = data[j+1];
					data[j+1] = temp;
				}
				
			}
		}*/
		System.out.println(data);
		
	}

}
